package cn.com.header.web.model.sys;

import cn.com.header.core.BaseEntity;

import java.util.Date;



/**
 * 附件实体类
 * @author yyf
 *
 */
@SuppressWarnings("serial")
public class Attachment extends BaseEntity {
	private Type type;
	private Long rowId;
	private String path;
	private String fileName;
	private String fileType;
	private Long fileSize;
	private Date createTime;
	private Long creater;
	private Integer graDocType;
	private Long schoolId;

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public Long getRowId() {
		return rowId;
	}

	public void setRowId(Long rowId) {
		this.rowId = rowId;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public Long getFileSize() {
		return fileSize;
	}

	public void setFileSize(Long fileSize) {
		this.fileSize = fileSize;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getCreater() {
		return creater;
	}

	public void setCreater(Long creater) {
		this.creater = creater;
	}

	public Integer getGraDocType() {
		return graDocType;
	}

	public void setGraDocType(Integer graDocType) {
		this.graDocType = graDocType;
	}

	public Long getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Long schoolId) {
		this.schoolId = schoolId;
	}

	/**
	 * 附件类型，表明一个附件所属的业务，可根据实体情况修改。
	 * 设置此枚举是因为直接使用字符串容易造成不一致。
	 * @author LinZongxue
	 *
	 */
	public static enum Type{
		/** 导入数据excel文件*/
		BASIC_EXCEL
	}
}
